#!/bin/bash

export REDIS_MONITOR_DB=$REDIS_MONITOR_DB
export REDIS_MONITOR=$REDIS_MONITOR

nohup $REDIS_MONITOR_DB/bin/redis-server /opt/edp/${service.serviceName}/conf/redis.conf > /dev/null 2>&1 &

nohup python $REDIS_MONITOR/redis-monitor-master/src/redis_monitor_daemon.py > /dev/null 2>&1 &

rm -f $REDIS_MONITOR/redis-monitor-master/src/redis_live.conf

ln -s /opt/edp/${service.serviceName}/conf/redis_live.conf $REDIS_MONITOR/redis-monitor-master/src/redis_live.conf

nohup python $REDIS_MONITOR/redis-monitor-master/src/redis_live_daemon.py > /dev/null 2>&1 &

tail -f /dev/null